<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var iNum01 = 12;
        var iNum02 = 24;

        var aList = ['a', 'b', 'c'];
        var sTr = 'a,b,c'

        // alert在弹出弹框后会阻止程序往下执行，点击确定后才会往下执行
        // alert(iNum01);
        // alert(iNum02);

        alert(aList);
        alert(sTr);

        // console 可以显示变量类型，不会阻止程序往下执行
        console.log(aList);
        console.log(sTr);

        // 通过标题栏来显示变量或对象
        document.title = 'iNum01的值是:' + iNum01;
    </script>
</head>
<body>
    
</body>
</html>